<?php
	$functionName = $_POST['functionName']; 
	switch($functionName){
		case "getCountNewsSinceArrived" :
			$feedType = $_POST['feedType'];
			$minID = $_POST['minID'];
			echo getCountNewsSinceArrived($feedType, $minID);	
		break;
		case "getLastPublicationID" :
			echo getLastPublicationID();
		break;
	}
	
	function getCountNewsSinceArrived($feedType, $minID){
		return "1";
	}
	
	function getLastPublicationID(){
		return 150;
	}